package com.example.dj;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class WelCome extends Activity{

	private final int SPLASH_DISPLAY_LENGHT=3000;

	public int getSPLASH_DISPLAY_LENGHT() {
		return SPLASH_DISPLAY_LENGHT;
	}@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.welcome);
		new Handler().postDelayed(new Runnable() {

			public void run() {
				Intent mainIntent = new Intent(WelCome.this, MainActivity.class);
				WelCome.this.startActivity(mainIntent);
				WelCome.this.finish();
			}

		}, SPLASH_DISPLAY_LENGHT);
	}
}
